Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better error reporting when semanticdb-scalac is not found #369

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented Sep 10, 2023

Follows scalacenter/scalafix#1857

Lead-up

Since scalameta/scalameta#3250, semanticdb-scalac is no longer published for all patch releases of Scala 2.13 and most patch releases of Scala 2.12, but only the 4 latest for each.

Impact

scalafixEnable is able to lookup a suitable scalameta version as of #292, but "permanent" sbt-scalafix / Scala 2.x users, leveraging sbt's SemanticdbPlugin via

+    semanticdbEnabled := true, // enable SemanticDB
+    semanticdbVersion := scalafixSemanticdb.revision // only required for Scala 2.x

per the documentation, are at the risk of getting errors if they run an old patch scala version, while it was working fine until now (up to Scalafix 0.11.0 / scalameta 4.7.8).

That means that this effectively a breaking change, but as the likelihood of a user setting up the latest scalafix version against a project that is running a very outdated scala version is minimal, this PR simply improves error reporting and we won't be bumping the minor version to highlight the change.

@bjaglin bjaglin changed the title more actionnable error when semanticdb-scalac is not available better error reporting when semanticdb-scalac is not found Sep 10, 2023
semanticdb-scalac is now only published for the 4 latest patch releases
for each minor scala version, see
scalameta/scalameta#3250
@bjaglin bjaglin marked this pull request as ready for review September 11, 2023 00:14
@bjaglin bjaglin merged commit e3c386d into scalacenter:main Sep 11, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant